<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>朴与素连锁店管理信息系统</title>
<%@ include file="../../common/Style.jsp"%>

<script>
	$(document).ready(function() {
		parent.$.messager.progress('close');

	});	
	

	//根据货品类别查询库存	
	$(function(){
	    $('#category').bind('click', function(){
			$.messager.progress({
				title : '提示',
				text : '数据处理中，请稍后....'
			});
			 document.inventoryChangeForm.action="headqInventoryFlowJSPAction!getInventoryChangeDetails?formBean.rptTypeId=2";
			 document.inventoryChangeForm.submit();		
	    });
	});


	//根据品牌查询库存信息
	$(function(){
	    $('#brand').bind('click', function(){
	    	$.messager.progress({
				title : '提示',
				text : '数据处理中，请稍后....'
			});
	    	document.inventoryChangeForm.action="headqInventoryFlowJSPAction!getInventoryChangeDetails?formBean.rptTypeId=1";
			document.inventoryChangeForm.submit();	    
	    });
	});

</script>
</head>
<body>

	<s:form
		action="/action/headqInventoryFlowJSPAction!getInventoryChangeDetails"
		method="POST" name="inventoryChangeForm" id="inventoryChangeForm" theme="simple">
		<table width="60%" align="center" class="OuterTable">
			<tr>
				<td>

					<table width="100%" border="0">
						<tr class="PBAOuterTableTitale">
							<td height="50" colspan="3">进销存变动统计</td>
						</tr>
						<tr class="InnerTableContent">
										<td height="32"><strong>日期</strong></td>
										<td colspan="2"><s:textfield id="startDate"
												name="formBean.startDate" cssClass="easyui-datebox"
												data-options="width:100,editable:false" /> &nbsp;至&nbsp; <s:textfield
												id="endDate" name="formBean.endDate"
												cssClass="easyui-datebox"
												data-options="width:100,editable:false" /></td>
									</tr>
						<tr class="InnerTableContent">
							<td height="32"><strong>仓库名称</strong></td>
							<td colspan="2"> <input class="easyui-combobox" name="formBean.storeIds" style="width:50%;" data-options="
			                    url:'headqInventoryFlowJSONAction!selectInventoryStores',
			                    method:'get',
			                    valueField:'id',
			                    textField:'text',
			                    multiple:true,
			                    panelHeight:'auto',
			                    prompt: '选择库房',
			                    labelPosition: 'top'
                    "></td>
						</tr>
						<tr class="InnerTableContent">
							<td height="32"><strong>货品归属</strong></td>
							<td colspan="2"><s:select size="1"
									cssClass="easyui-combobox" style="width:20%"
									data-options="prompt:'请选择归属'" id="belongTo"
									 list="uiBean.belongMap"
									 name="formBean.belongTo"
									listKey="key"  listValue="value" /></td>
						</tr>
						<tr class="InnerTableContent">
							<td height="34">&nbsp;</td>
							<td colspan="2"><a id="brand" href="#"
								class="easyui-linkbutton" data-options="iconCls:'icon-search'">查询品牌报表</a><a
								id="category" href="#" class="easyui-linkbutton"
								data-options="iconCls:'icon-search'">查询类别报表</a></td>
						</tr>

					</table>
	   </td>
			</tr>
	 </table>
	 </s:form>
</body>

</html>